export default {
    tree: async (ctx: any) => {
        ctx.body = {
            code: 1,
            data: [
                {
                    type: 'page',
                    name: '首页',
                    path: '/admin/home'
                },
                {
                    type: 'menu',
                    name: '系统设置',
                    children: [
                        {
                            type: 'page',
                            name: '菜单管理',
                            path: '/admin/menu-manage',
                        },
                        {
                            type: 'page',
                            name: '用户管理',
                            path: '/admin/user',
                        }
                    ],
                },
                {
                    type: 'menu',
                    name: '基础数据',
                    children: [
                        {
                            type: 'group',
                            name: '大模块',
                            children: [
                                {
                                    type: 'page',
                                    name: '小哥可',
                                    path: '/admin/template'
                                }
                            ]
                        },
                        {
                            type: 'page',
                            name: '字典管理',
                            path: '/admin/dict'
                        },
                        {
                            type: 'menu',
                            name: '其它',
                            children: [{
                                type: 'page',
                                name: '字典管理',
                                path: '/admin/dict'
                            }]
                        }
            
                    ]
                }, 
                {
                    type: 'group',
                    name: '大模块',
                }
            ]
        }
    }
}
